package com.yh.csx.crm.dao;

import com.yh.csx.crm.po.Approval;
import com.yh.csx.crm.po.ApprovalAndCustomerSnapshot;
import com.yh.csx.crm.qo.ApprovalListQo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ApprovalMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Approval record);

    int insertSelective(Approval record);

    Approval selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Approval record);

    int updateByPrimaryKey(Approval record);

    List<ApprovalAndCustomerSnapshot> selectByExample(ApprovalListQo qo);

    List<Approval> selectByCustomerIdAndStatus(@Param("customerId") Long customerId, @Param("status") String status);

    List<Approval> selectByCustomerIdAndType(@Param("customerId") Long customerId, @Param("approvalType") String approvalType);

    List<Approval> selectByCustomerId(Long id);

    String selcetStatus(Approval approval);

    Approval selectProcess(Approval approval);

}